import request from "@/router/axios";
// 客户加注记录
export const getPage = (page, params) => {
  return request({
    url: "/admin/recorduser/page",
    method: "get",
    params: {
      ...page,
      ...params,
    },
  });
};

export const getPageRecordPage = (page, params) => {
  return request({
    url: "/api/uic-system/fillprofitsharerecord/page",
    method: "get",
    params: {
      ...page,
      ...params,
    },
  });
};

export const detail = (id) => {
  return request({
    url: `/api/uic-system/fillrecorduser/detail`,
    method: "get",
    params: { id },
  });
};

export const shoppayDetail = (orderCode) => {
  return request({
    url: `/api/uic-system/shoppay/detail`,
    method: "get",
    params: { orderCode },
  });
};

export const summary = (userId) => {
  return request({
    url: `/api/uic-system/fillrecorduser/${userId}/summary`,
    method: "get",
  });
};

export const summaryByTeam = (teamId, params) => {
  return request({
    url: `/admin/recorduser/summary`,
    method: "get",
    params: { teamId: teamId, ...params },
  });
};

export const summaryByAll = (params) => {
  return request({
    url: `/api/uic-system/fillrecorduser/summaryByAll`,
    method: "get",
    params,
  });
};
export const getUsercoupon = (params) => {
  return request({
    url: `/admin/usercoupon/page`,
    method: "get",
    params,
  });
};
export const getUsercard = (params) => {
  return request({
    url: `/admin/usercard/page`,
    method: "get",
    params,
  });
};
export const getUserbalance = (params) => {
  return request({
    url: `/admin/userbalance/page`,
    method: "get",
    params,
  });
};
